home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Resource / Static / Makefile < prev   
Makefile  |  1995-09-04  |  2KB  |  87 lines

  1.  
  2. ObjectFiles    =        \
  3.             o.Init    \
  4.             o.InitPath    \
  5.             o.LoadSprite    \
  6.             o.Pathname    \
  7.  
  8.  
  9. LibName        =    Resource
  10.  
  11. # Template makefile which makes normal 
  12. # .o files for use in the main static
  13. # linking DeskLib.
  14.  
  15. # The macro $(ObjectFiles) should be set at the 
  16. # start of this file to be a space-separated
  17. # list of object files.
  18. # This is done by 'Makatic'.
  19.  
  20. # The macro $(LibName) should also be set at the 
  21. # start of this file, to be the name of the 
  22. # DeskLib sublibrary.
  23. # This is done by 'Makatic'.
  24.  
  25. # Compiler and linker flags, These can be anything. 
  26. # All essential flags are included in the macros 
  27. # $(CC) and $(ASM)
  28. #
  29. CCFlags        =    -ffahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
  30. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  31.  
  32. CC        =    cc -c $(CCFlags)
  33. ASM        =    objasm $(ASMFlags)
  34.  
  35.  
  36. # -------------------------------------------------------
  37. # Everything below here should probably not be changed...
  38. # -------------------------------------------------------
  39.  
  40. # Here's what we want to make...
  41. #
  42. All:        $(ObjectFiles)
  43.  
  44.  
  45. VPATH = @.^
  46.  
  47. .SUFFIXES:    .c .s .o
  48.  
  49. .c.o:
  50.     $(CC) $< -o $@
  51.     
  52. .s.o:
  53.     $(ASM) -from $< -to $@
  54.  
  55.  
  56.  
  57. # Dynamic dependencies:
  58. o.Init:    ^.c.Init
  59. o.Init:    DeskLib:h.Resource
  60. o.Init:    DeskLib:h.Sprite
  61. o.Init:    DeskLib:h.Core
  62. o.Init:    DeskLib:h.Wimp
  63. o.Init:    DeskLib:h.Coord
  64. o.Init:    DeskLib:h.Str
  65. o.InitPath:    ^.c.InitPath
  66. o.InitPath:    DeskLib:h.Resource
  67. o.InitPath:    DeskLib:h.Sprite
  68. o.InitPath:    DeskLib:h.Core
  69. o.InitPath:    DeskLib:h.Wimp
  70. o.InitPath:    DeskLib:h.Coord
  71. o.LoadSprite:    ^.c.LoadSprite
  72. o.LoadSprite:    DeskLib:h.Error
  73. o.LoadSprite:    DeskLib:h.Core
  74. o.LoadSprite:    DeskLib:h.File
  75. o.LoadSprite:    DeskLib:h.SWI
  76. o.LoadSprite:    DeskLib:h.Resource
  77. o.LoadSprite:    DeskLib:h.Sprite
  78. o.LoadSprite:    DeskLib:h.Wimp
  79. o.LoadSprite:    DeskLib:h.Coord
  80. o.LoadSprite:    DeskLib:h.Sprite
  81. o.Pathname:    ^.c.Pathname
  82. o.Pathname:    DeskLib:h.Resource
  83. o.Pathname:    DeskLib:h.Sprite
  84. o.Pathname:    DeskLib:h.Core
  85. o.Pathname:    DeskLib:h.Wimp
  86. o.Pathname:    DeskLib:h.Coord
  87.